home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / os-includeppc / inline / battmem.h < prev    next >
C/C++ Source or Header  |  1997-04-14  |  852b  |  31 lines

  1. /* Automatically generated header! Do not edit! */
  2.  
  3. #ifndef _INLINE_BATTMEM_H
  4. #define _INLINE_BATTMEM_H
  5.  
  6. #ifndef __INLINE_MACROS_H
  7. #include <inline/macros.h>
  8. #endif /* !__INLINE_MACROS_H */
  9.  
  10. #ifndef BATTMEM_BASE_NAME
  11. #define BATTMEM_BASE_NAME BattMemBase
  12. #endif /* !BATTMEM_BASE_NAME */
  13.  
  14. #define ObtainBattSemaphore() \
  15.     LP0NR(0x6, ObtainBattSemaphore, \
  16.     , BATTMEM_BASE_NAME)
  17.  
  18. #define ReadBattMem(buffer, offset, length) \
  19.     LP3(0x12, ULONG, ReadBattMem, APTR, buffer, a0, unsigned long, offset, d0, unsigned long, length, d1, \
  20.     , BATTMEM_BASE_NAME)
  21.  
  22. #define ReleaseBattSemaphore() \
  23.     LP0NR(0xc, ReleaseBattSemaphore, \
  24.     , BATTMEM_BASE_NAME)
  25.  
  26. #define WriteBattMem(buffer, offset, length) \
  27.     LP3(0x18, ULONG, WriteBattMem, APTR, buffer, a0, unsigned long, offset, d0, unsigned long, length, d1, \
  28.     , BATTMEM_BASE_NAME)
  29.  
  30. #endif /* !_INLINE_BATTMEM_H */
  31.